package com.xq.xq.kotlinlearnsingletom.kotlin

import com.gourd.kotlinojt.singleton.EagerSingleton
import com.xq.xq.kotlinlearnsingletom.java.SingletonDD

fun main(args: Array<String>) {
    EagerSingleton.eat("bread, kotlin")
    LazySingleton.instance.eat("bread, kotlin")
    ParamLazySingleton.getInstance("context").eat("bread, kotlin")
    println(SingletonAKt.toString())
    println(SingletonBKt.getInstance().toString())
    println(SingletonCKt.toString())
    println(SingletonCKt.getInstance().toString())
    println(SingletonDD.getInstance().toString())
    println(SingletonDDKt.intance.toString())
}